package com.zbf.web;

import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/17  16:53
 * 描述:
 */
@RestController
public class TestController2 {

    @Value("${server.port}")
    private String prot;

    @RequestMapping("test02")
    public String test02(@RequestBody Map<String,Object> map){

        System.out.println("============="+prot);

        return JSON.toJSONString(map);

    }

}
